<%= form_for(@page) do |f| %>
  <% if @page.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2>

      <ul>
      <% @page.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :title, "Naslov" %><br />
    <%= f.text_field :title, :class => [:big, :title] %>
  </div>
  <div class="field">
    <%= f.label :slug, "URL naslov (slug)" %><br />
    <%= f.text_field :slug, :class => [:big, :slug] %>
  </div>
  <div class="field">
    <%= f.label :content, "Sadržaj" %><br />
    <%= f.text_area :content, :class => [:big, 'bb-code'] %>
  </div>
  <div class="actions">
    <%= f.submit "Spremi" %>
  </div>
<% end %>
